<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <title>狼码客户关系管理系统</title>
    <%@include file="/static/common/common.jsp"%>
    <link href="/static/css/bootstrap.min.css" title="" rel="stylesheet"/>
    <script src="/static/plugins/bootstrap/bootstrap.min.js"></script>
    <link title="orange" href="/static/css/login.css" rel="stylesheet" type="text/css"/>
    <style>
        .login{
            background-color: rgba(248, 255, 255, 0.3);
        }

    </style>

</head>

<body style="overflow: hidden;">
<video id="video1"  style="min-width: 100%;position: fixed; z-index: -1;" loop="loop" autoplay="autoplay">
    <source src="/static/video/car.mp4" type="video/mp4" />
</video>
<%--<object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="MediaPlayer" width="332" height="68">
    <param NAME="AUTOSTART" VALUE="true">
    <param name="ShowStatusBar" value="-1">
    <param name="Filename" value="http://localhost/static/video/meinv.mp4"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="http://重复视频地址(非swf或flv)" width="100%" height="100%">
</object>--%>
<div style="height:1px;"></div>
<div class="login">
    <header>
        <h1>用户登录</h1>
    </header>
    <div class="sr">
        <form method="post" id="loginForm">
            <div class="name">
                <label>
                    <i class="sublist-icon glyphicon glyphicon-user"></i>
                </label>
                <input type="text" placeholder="这里输入登录名" class="name_inp" name="username" value="admin">
            </div>
            <div class="name">
                <label>
                    <i class="sublist-icon glyphicon glyphicon-pencil"></i>
                </label>
                <input type="password" placeholder="这里输入登录密码" class="name_inp" name="password" value="1" placeholder="密码">
            </div>
            <button class="dl" id="loginBtn" type="button">登录</button>
        </form>
    </div>
    <div style="text-align:center;" class="login-help">
        <p>Copyright ©2017 狼码教育科技有限公司</p>
    </div>
    <script>
        $('#loginBtn').click(function () {
            var data = $("#loginForm").serialize();
            $.post('/login.do', data, function (data) {
                if (data.success) {
                    parent.location.href = '/index.do';
                } else {
                    $.messager.alert('温馨提示', data.msg, 'warning');
                }
            })
        })
    </script>

</div>


</body>
</html>